﻿<%@ Page Title="" Language="C#" MasterPageFile="~/common.Master" AutoEventWireup="true" CodeBehind="frmUserbianjiliuyan.aspx.cs" Inherits="WebApp3.frmUserbianjiliuyan" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="id" DataSourceID="SqlDataSource1" ForeColor="Black" Height="359px" Width="641px" BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellSpacing="2" PageSize="4">
    <Columns>
        <asp:TemplateField HeaderText="留言主题">
            <ItemTemplate>
                <table class="auto-style7">
                    <tr>
                        <td style="text-align: right">
                            <asp:Image ID="Image9" runat="server" Height="24px" ImageUrl='<%# Eval("face", "~\\face\\{0}.gif") %>' Width="24px" />
                        </td>
                        <td>
                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("id", "frmUserBianji.aspx?id={0}") %>' Text='<%# Eval("lyzhuti", "{0}") %>'></asp:HyperLink>
                        </td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="lytime" HeaderText="留言时间" SortExpression="lytime" />
        <asp:BoundField DataField="ReyName" HeaderText="回复名字" SortExpression="ReyName" />
        <asp:BoundField DataField="ReyTime" HeaderText="回复时间" SortExpression="ReyTime" />
        <asp:CommandField ShowDeleteButton="True" />
    </Columns>
    <FooterStyle BackColor="#CCCCCC" />
    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
    <RowStyle BackColor="White" />
    <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
    <SortedAscendingCellStyle BackColor="#F1F1F1" />
    <SortedAscendingHeaderStyle BackColor="#808080" />
    <SortedDescendingCellStyle BackColor="#CAC9C9" />
    <SortedDescendingHeaderStyle BackColor="#383838" />
</asp:GridView>
    <br />
    <asp:Label ID="Label2" runat="server" ForeColor="Red" Text="点击对应的留言主题可查看相应的内容和进行修改"></asp:Label>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dhd2014112111ConnectionString %>" DeleteCommand="DELETE FROM [LyTable] WHERE [id] = @id" InsertCommand="INSERT INTO [LyTable] ([lyzhuti], [lyneirong], [name], [lytime], [face], [lyip], [id], [ReyTime], [ReyNeirong], [ReyName]) VALUES (@lyzhuti, @lyneirong, @name, @lytime, @face, @lyip, @id, @ReyTime, @ReyNeirong, @ReyName)" SelectCommand="SELECT * FROM [LyTable] WHERE ([name] = @name)" UpdateCommand="UPDATE [LyTable] SET [lyzhuti] = @lyzhuti, [lyneirong] = @lyneirong, [name] = @name, [lytime] = @lytime, [face] = @face, [lyip] = @lyip, [ReyTime] = @ReyTime, [ReyNeirong] = @ReyNeirong, [ReyName] = @ReyName WHERE [id] = @id">
    <DeleteParameters>
        <asp:Parameter Name="id" Type="String" />
    </DeleteParameters>
    <InsertParameters>
        <asp:Parameter Name="lyzhuti" Type="String" />
        <asp:Parameter Name="lyneirong" Type="String" />
        <asp:Parameter Name="name" Type="String" />
        <asp:Parameter Name="lytime" Type="DateTime" />
        <asp:Parameter Name="face" Type="String" />
        <asp:Parameter Name="lyip" Type="String" />
        <asp:Parameter Name="id" Type="String" />
        <asp:Parameter Name="ReyTime" Type="DateTime" />
        <asp:Parameter Name="ReyNeirong" Type="String" />
        <asp:Parameter Name="ReyName" Type="String" />
    </InsertParameters>
    <SelectParameters>
        <asp:ControlParameter ControlID="Label1" Name="name" PropertyName="Text" Type="String" />
    </SelectParameters>
    <UpdateParameters>
        <asp:Parameter Name="lyzhuti" Type="String" />
        <asp:Parameter Name="lyneirong" Type="String" />
        <asp:Parameter Name="name" Type="String" />
        <asp:Parameter Name="lytime" Type="DateTime" />
        <asp:Parameter Name="face" Type="String" />
        <asp:Parameter Name="lyip" Type="String" />
        <asp:Parameter Name="ReyTime" Type="DateTime" />
        <asp:Parameter Name="ReyNeirong" Type="String" />
        <asp:Parameter Name="ReyName" Type="String" />
        <asp:Parameter Name="id" Type="String" />
    </UpdateParameters>
</asp:SqlDataSource>
<br />
<asp:Label ID="Label1" runat="server"></asp:Label>
</asp:Content>
